package com.hivision.iot.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * <p>Title: Asset</p>
 * <p>Description: TODO</p>
 * <p>Company: www.h-visions.com</p>
 * <p>create date: 2021/03/10</p>
 *
 * @author :jqzhang
 * @version :1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AssetState {

    @JsonProperty(value = "Assets")
    private List<AssetStateInfo> assets;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class AssetStateInfo{

        @JsonProperty(value = "Code")
        private String code;

        @JsonProperty(value = "State")
        private Integer state;
    }


}
